<!-- Begin sidebar -->
<div id="sidebar">
  <div id="sidebar-inner">
   <div class="side-tab sect">
    <h2>
	 <ol>
	   <li id="tabside1" onclick="setTab('tabside',1,4)" class="current"><?php _e('最近评论', 'eachBlue'); ?></li>
	   <li id="tabside2" onclick="setTab('tabside',2,4)"><?php _e('热门日志', 'eachBlue'); ?></li>
	   <li id="tabside3" onclick="setTab('tabside',3,4)"><?php _e('最新日志', 'eachBlue'); ?></li>
	   <li id="tabside4" onclick="setTab('tabside',4,4)"><?php _e('标签云', 'eachBlue'); ?></li>
	 </ol>
	</h2>
	<ul class="recentcomment" id="contabside1"><?php cache_recent_comments(); ?></ul>
	<ul class="poppost nodis" id="contabside2"><?php cache_popular_posts(); ?></ul>
	<ul class="recentpost nodis" id="contabside3"><?php cache_recent_posts(); ?></ul>
	<ul class="tags nodis" id="contabside4"><?php wp_tag_cloud('unit=px&smallest=12&largest=18'); ?></ul>
   </div>
   <br />
   <?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar() ) : ?>
   <div class="link-list sect">
    <h2><?php _e('友情链接', 'eachBlue'); ?></h2>
    <ul>
	<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
	</ul>
   </div>
   <br />
   <div class="sect">
   	<h2><?php _e('网站管理', 'eachBlue'); ?></h2>
   	<ul>
   		<?php wp_register(); ?>
   		<li><?php wp_loginout(); ?></li>
   		<li><a href="<?php bloginfo('rss2_url'); ?>" title="RSS"><abbr title="Really Simple Syndication">RSS</abbr> for posts</a></li>
   		<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="RSS of Comments"><abbr title="Really Simple Syndication">RSS</abbr> for comments</a></li>
   		<?php wp_meta(); ?>
   	</ul>	
  </div>
  <?php endif; ?> 	
  </div><!-- End sidebar-inner -->
</div><!-- End sidebar -->